package com.zqf.designpattern.strategyPattern;

import lombok.Data;

public class Context {
    private Strategy strategy;
    public Context(Strategy strategy){
       this.strategy=strategy;
    }

    public void algorithm(){
        this.strategy.algorithm();
    }
}
